package cn.openea.perpartner.common.core.exception;

/**
 * @author ysk
 * @version 1.0.1
 * @Description 锁超时
 * @createTime 2023年05月19日 19:40:00
 */
public class LockTimeoutException extends RuntimeException {
    private static final long serialVersionUID = 1L;

    /**
     * 消息
     */
    private String msg;

    /**
     * 状态码
     */
    private Integer code = 600;

    public LockTimeoutException(String msg) {
        this.msg = msg;
    }

    public LockTimeoutException(String msg, Integer code) {
        this.msg = msg;
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public Integer getCode() {
        return code;
    }
}
